<form class="layui-form layui-form-pane edit-form">
    <div class="layui-form-item">
        <label class="layui-form-label">
            购买人ID
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required|number" name="user_id" type="text" value="{$data['user_id']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            广告位ID
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required|number" name="foreign_key" type="text" value="{$data['foreign_key']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            广告位id
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required|number" name="position_id" type="text" value="{$data['position_id']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            支付金额
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required|number" name="price" type="text" value="{$data['price']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            用户角色  0：前台会员  1：后台代理
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required" name="role" type="text" value="{$data['role']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            购买天数
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required|number" name="buy_num" type="text" value="{$data['buy_num']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            广告到期时间
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required|number" name="end_time" type="text" value="{$data['end_time']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            状态 0:未支付 1：已支付 2：已下架
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required" name="status" type="text" value="{$data['status']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            内部订单号
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required" name="order_no" type="text" value="{$data['order_no']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            交易号
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required" name="tran_no" type="text" value="{$data['tran_no']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            支付方式  0：余额 1：微信 2：支付宝
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required" name="pay_type" type="text" value="{$data['pay_type']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            支付方式
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required|number" name="pay_time" type="text" value="{$data['pay_time']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            图片
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required" name="image" type="text" value="{$data['image']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            名称
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required" name="name" type="text" value="{$data['name']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            城市编码
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required" name="city" type="text" value="{$data['city']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            下单时间
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required|number" name="add_time" type="text" value="{$data['add_time']}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-filter="editform" lay-submit="">
                保存
            </button>
            <button class="layui-btn layui-btn-primary layui-btn-cancel" type="button">
                取消
            </button>
        </div>
    </div>
</form>
